package cn.jiahua.hospital.mapper;

import cn.jiahua.hospital.pojo.Departments;
import cn.jiahua.hospital.pojo.HdidRelation;
import cn.jiahua.hospital.pojo.Tdepartments;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface DepartmentsMapper {


    public Departments getDepartmentsById(@Param(value = "DepartmentsId") Integer DepartmentsId);

    public List<Departments> getDepartmentsListByMap(Map<String, Object> param);

    public Integer getDepartmentsCountByMap(Map<String, Object> param);

    public Integer insertDepartments(Departments departments);

    public Integer updateDepartments(Departments departments);

    public Integer deleteDepartmentsById(@Param(value = "id") Integer id);

    public Integer batchDeleteDepartments(Map<String, List<String>> params);

    public List<Tdepartments> getDepartments();

    public List<Departments> getDepartments1(@Param("hospitalId") Integer hospitalId);


    //分页模糊查询
    public List<Departments> departmentsSelectPage(@Param(value = "departmentsName") String departmentsName,
                                                   @Param(value = "pageNo") Integer pageNo,
                                                   @Param(value = "pageSize") Integer pageSize);

    //查询总数
    public int departmentSelectCount(@Param(value = "departmentsName") String departmentsName);

    public List<Departments> selectAll(@Param("hospitalId")String hospitalId);
}
